button: Fix typo in keyboard grab's evmask
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 17 May 2011 11:12:26 +0000 (13:12 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 17 May 2011 11:17:25 +0000 (13:17 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=650382, spotted
by Alexander Larsson.

gtk/gtkbutton.c

index ba121b5e6271dce6efaafe80e8cc263271e198fb..9c5e7ab2419b067e5bc5c8309e6af3e6356b28d0 100644 (file)
@@ -1871,7 +1871,7 @@ gtk_real_button_activate (GtkButton *button)
        {
          if (gdk_device_grab (device, priv->event_window,
                               GDK_OWNERSHIP_WINDOW, TRUE,
-                              GDK_KEY_PRESS | GDK_KEY_RELEASE,
+                              GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK,
                               NULL, time) == GDK_GRAB_SUCCESS)
            {
              gtk_device_grab_add (widget, device, TRUE);